/*
 * @Author: 'Chenfarry' '2925102113@qq.com'
 * @Date: 2024-07-31 15:19:11
 * @LastEditors: chenhuanhuan 2925102113@qq.com
 * @LastEditTime: 2024-08-29 11:52:20
 * @FilePath: \orderApp\service\business\login\type.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { SelectDishInfo } from '../orderingDishes/type'

/**
 * @param token 用户token
 * @param user 用户信息
 */
export type UserType = {
  token?: string
  user?: UserInfo
}
/**
 *@returns 登录返回信息
 *@param nickname 昵称
 *@param name 姓名
 *@param activityType 账号状态
 *@param likeTaste 口味喜好
 *@param likeStyle 菜系喜好
 *@param kitchenId 伙食灶ID
 *@param userId 用户ID
 */
export interface UserInfo {
  nickname?: string
  activityType?: number
  age?: number
  anonymous?: number
  attentionDishs?: string
  bmi?: number
  contact?: string
  countAdvice?: number
  countDish?: number
  custom1?: string | null
  custom2?: string | null
  custom3?: string | null
  custom4?: string | null
  diseases?: string | null
  foodAdvice?: string | null
  foodAdviceSimple?: string
  foodOven?: any | Object
  headPortrait?: string
  height?: string
  image?: string
  openid?: string
  isDelete?: string
  kitchenId?: number
  labourId?: string
  labourStrength?: string
  likeTaste?: string
  likeStyle?: string
  loginTime?: string
  name?: string
  nutritionPackageId?: string
  oneLogin?: string
  password?: string
  registerTime?: string
  sex?: number
  status?: number
  syncTerminal?: string
  unionId?: string
  userId?: number
  weight?: string
}

/**
 * @returns 伙食灶信息
 * @param charge 厨师信息
 * @param contactTel 手机号
 * @param kitchenCode 伙食灶编码
 * @param kitchenId 伙食灶ID
 * @param kitchenName 伙食灶名称
 */
export type KitchType = {
  data: KitchenInfo
}
export interface KitchenInfo {
  charge?: string
  contactTel?: string
  describes?: string
  establishTime?: string
  kitchenCode?: string
  kitchenId?: string
  kitchenName?: string
}

/**
 *@param id 菜系编码
 *@param style 菜系名称
 */
export type StyleType = {
  data: StyleInfo[]
}

interface StyleInfo {
  id: number
  style: string
}

/**
 * @returns 口味信息
 * @param id 口味编码
 * @param value 口味名称
 */
export type TasteType = {
  data: TasteInfo[]
}

interface TasteInfo {
  id?: number
  ruleType: number
  value: string
}


export interface UserHealthyInfo {
  age?: number
  bloodAcid?: number
  bmi?: number
  cholesterol?: number
  diagnoseInfo: null
  diastolic?: number
  fbg?: number
  height?: number
  illness?: Array<string>
  job?: string
  ldl?: number
  name?: string
  sex?: number
  systolic?: number
  triglyceride?: number
  unit?: string
  userCode?: string
  userId?: number
  waistline?: number
  weight?: number
}


// 我的关注信息
export interface AttentionInfo {
  dishLibrarie?: SelectDishInfo
  dishId?: number
  id?: number
  sum?: number
  userId?: number
}